<%@ page import="your_car_status.Vehicle" %>



<div class="fieldcontain ${hasErrors(bean: vehicleInstance, field: 'licensePlate', 'error')} required">
	<label for="licensePlate">
		<g:message code="vehicle.licensePlate.label" default="License Plate" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="licensePlate" required="" value="${vehicleInstance?.licensePlate}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: vehicleInstance, field: 'confirmLicensePlate', 'error')} required">
	<label for="confirmLicensePlate">
		<g:message code="vehicle.confirmLicensePlate.label" default="Confirm License Plate" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="confirmLicensePlate" required="" value="${vehicleInstance?.confirmLicensePlate}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: vehicleInstance, field: 'serialNumber', 'error')} required">
	<label for="serialNumber">
		<g:message code="vehicle.serialNumber.label" default="Serial Number" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="serialNumber" required="" value="${vehicleInstance?.serialNumber}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: vehicleInstance, field: 'policyNumber', 'error')} required">
	<label for="policyNumber">
		<g:message code="vehicle.policyNumber.label" default="Policy Number" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="policyNumber" required="" value="${vehicleInstance?.policyNumber}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: vehicleInstance, field: 'mileage', 'error')} required">
	<label for="mileage">
		<g:message code="vehicle.mileage.label" default="Mileage" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="mileage" required="" value="${vehicleInstance?.mileage}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: vehicleInstance, field: 'fuelType', 'error')} required">
	<label for="fuelType">
		<g:message code="vehicle.fuelType.label" default="Fuel Type" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="fuelType" required="" value="${vehicleInstance?.fuelType}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: vehicleInstance, field: 'carMake', 'error')} ">
	<label for="carMake">
		<g:message code="vehicle.carMake.label" default="Car Make" />
		
	</label>
	<g:textField name="carMake" value="${vehicleInstance?.carMake}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: vehicleInstance, field: 'carModel', 'error')} ">
	<label for="carModel">
		<g:message code="vehicle.carModel.label" default="Car Model" />
		
	</label>
	<g:textField name="carModel" value="${vehicleInstance?.carModel}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: vehicleInstance, field: 'colour', 'error')} ">
	<label for="colour">
		<g:message code="vehicle.colour.label" default="Colour" />
		
	</label>
	<g:textField name="colour" value="${vehicleInstance?.colour}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: vehicleInstance, field: 'customer', 'error')} required">
	<label for="customer">
		<g:message code="vehicle.customer.label" default="Customer" />
		<span class="required-indicator">*</span>
	</label>
  <g:select id="customer" name="customer.id" from="${your_car_status.Customer.list()}" optionKey="id" optionValue="name" required="" value="${vehicleInstance?.customer?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: vehicleInstance, field: 'cylinderNumber', 'error')} ">
	<label for="cylinderNumber">
		<g:message code="vehicle.cylinderNumber.label" default="Cylinder Number" />
		
	</label>
	<g:textField name="cylinderNumber" value="${vehicleInstance?.cylinderNumber}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: vehicleInstance, field: 'type', 'error')} ">
	<label for="type">
		<g:message code="vehicle.type.label" default="Type" />
		
	</label>
	<g:textField name="type" value="${vehicleInstance?.type}"/>
</div>

